const http = require('http');

const server = http.createServer((req, res) => {
    res.writeHead(200, {'context-type': 'text/html'});
    res.end('<h1>hello nodejs</h1>');
});
server.listen(3000, () => {
    console.log('listening on 3000 port');
});